<template>
  <div class='' v-html="html">

  </div>
</template>

<script>
import { viewTemplate } from "@/api/template/index";
export default {
  data() {
    return { templateId: this.$route.params.id, html: null };
  },

  components: {},

  computed: {},

  mounted() {
    this.getTemplateView();
  },

  methods: {
    getTemplateView() {
      viewTemplate({ templateId: this.templateId }).then((res) => {
        this.html = res.data;
      });
    },
  },
};
</script>

<style scoped lang='scss'>
</style>